package com.wgworkshop.pems.service;

import com.wgworkshop.pems.model.AttendanceModel;
import com.wgworkshop.pems.model.AttendanceView;
import com.wgworkshop.pems.repository.AttendanceRepository;

/**
 * 考勤服务接口。
 * Created by wlc on 2017/7/9.
 */
public interface AttendanceService {
    AttendanceModel save(AttendanceModel attendanceModel);

    void delete(Long id);

    AttendanceModel update(Long id, AttendanceModel attendanceModel);

    AttendanceModel update(AttendanceModel attendanceModel);

    AttendanceModel findOne(Long id);

    boolean exists(Long id);

    void checkExists(Long id);

    AttendanceView getAttendanceView(int week, int classNum, int shift);

    AttendanceRepository getRepository();
}
